package com.woniuxy.service.impl;

import com.woniuxy.service.RoleService;
import org.springframework.stereotype.Service;

@Service
public class RoleServiceImpl implements RoleService {
    @Override
    public void findAll() {
        System.out.println("RoleServiceImpl.findAll:执行");
    }

    @Override
    public void findOne() {
        try {
            int i = 1 / 0;
        } catch (Exception e) {
            throw new RuntimeException("后台维护中");
        }
        System.out.println("RoleServiceImpl.findOne:执行");
    }
}
